{#
    # flask的网页程序，网页有3个文本框，分别输入直接排放系数、间接排放系数、处理规模，
    # 点击提交按钮后，在文本框下方返回处理碳排放，公式=直接排放系数*处理规模+间接排放系数*处理规模
#}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>碳排放计算器</title>
</head>
<body>
    <h1>碳排放计算器</h1>
    <form  method="post">
        <label for="direct_emission_factor">直接排放系数：</label>
        <input type="text" id="direct_emission_factor" name="direct_emission_factor"><br><br>
        <label for="indirect_emission_factor">间接排放系数：</label>
        <input type="text" id="indirect_emission_factor" name="indirect_emission_factor"><br><br>
        <label for="treatment_scale">工厂处理规模：</label>
        <input type="text" id="treatment_scale" name="treatment_scale"><br><br>
        <input type="submit" value="提交">
    </form>
    {% if result is defined %}
        <h2>处理碳排放：{{ result }}</h2>
    {% endif %}
</body>
</html>
